package com.jesper.seckill.service;

import com.jesper.seckill.entity.po.Order;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author sjw
 * @since 2024-01-18
 */
public interface IOrderService extends IService<Order> {

    /**
     * 通过用户id和商品id判断是否重复秒杀
     */
    boolean isRepeatUserGoodsSecKill(String userId,String goodsId);

    /**
     * 批量新增订单信息
     */
    void batchInsertOrder(List<Order> orderList);
}
